// vite.config.js
import {
    defineConfig,
    loadEnv
} from "file:///E:/CodeLearn/SpringCould%20projects/share-all/share-frontend/share-ui/node_modules/vite/dist/node/index.js";
import path2 from "path";

// vite/plugins/index.js
import vue
    from "file:///E:/CodeLearn/SpringCould%20projects/share-all/share-frontend/share-ui/node_modules/@vitejs/plugin-vue/dist/index.mjs";

// vite/plugins/auto-import.js
import autoImport
    from "file:///E:/CodeLearn/SpringCould%20projects/share-all/share-frontend/share-ui/node_modules/unplugin-auto-import/dist/vite.js";

function createAutoImport() {
    return autoImport({
        imports: [
            "vue",
            "vue-router",
            "pinia"
        ],
        dts: false
    });
}

// vite/plugins/svg-icon.js
import {
    createSvgIconsPlugin
} from "file:///E:/CodeLearn/SpringCould%20projects/share-all/share-frontend/share-ui/node_modules/vite-plugin-svg-icons/dist/index.mjs";
import path from "path";

function createSvgIcon(isBuild) {
    return createSvgIconsPlugin({
        iconDirs: [path.resolve(process.cwd(), "src/assets/icons/svg")],
        symbolId: "icon-[dir]-[name]",
        svgoOptions: isBuild
    });
}

// vite/plugins/compression.js
import compression
    from "file:///E:/CodeLearn/SpringCould%20projects/share-all/share-frontend/share-ui/node_modules/vite-plugin-compression/dist/index.mjs";

function createCompression(env) {
    const {VITE_BUILD_COMPRESS} = env;
    const plugin = [];
    if (VITE_BUILD_COMPRESS) {
        const compressList = VITE_BUILD_COMPRESS.split(",");
        if (compressList.includes("gzip")) {
            plugin.push(
                compression({
                    ext: ".gz",
                    deleteOriginFile: false
                })
            );
        }
        if (compressList.includes("brotli")) {
            plugin.push(
                compression({
                    ext: ".br",
                    algorithm: "brotliCompress",
                    deleteOriginFile: false
                })
            );
        }
    }
    return plugin;
}

// vite/plugins/setup-extend.js
import setupExtend
    from "file:///E:/CodeLearn/SpringCould%20projects/share-all/share-frontend/share-ui/node_modules/unplugin-vue-setup-extend-plus/dist/vite.js";

function createSetupExtend() {
    return setupExtend({});
}

// vite/plugins/index.js
function createVitePlugins(viteEnv, isBuild = false) {
    const vitePlugins = [vue()];
    vitePlugins.push(createAutoImport());
    vitePlugins.push(createSetupExtend());
    vitePlugins.push(createSvgIcon(isBuild));
    isBuild && vitePlugins.push(...createCompression(viteEnv));
    return vitePlugins;
}

// vite.config.js
var __vite_injected_original_dirname = "E:\\CodeLearn\\SpringCould projects\\share-all\\share-frontend\\share-ui";
var vite_config_default = defineConfig(({mode, command}) => {
    const env = loadEnv(mode, process.cwd());
    const {VITE_APP_ENV} = env;
    return {
        // 部署生产环境和开发环境下的URL。
        // 默认情况下，vite 会假设你的应用是被部署在一个域名的根路径上
        // 例如 https://www.ruoyi.vip/。如果应用被部署在一个子路径上，你就需要用这个选项指定这个子路径。例如，如果你的应用被部署在 https://www.ruoyi.vip/admin/，则设置 baseUrl 为 /admin/。
        base: VITE_APP_ENV === "production" ? "/" : "/",
        plugins: createVitePlugins(env, command === "build"),
        resolve: {
            // https://cn.vitejs.dev/config/#resolve-alias
            alias: {
                // 设置路径
                "~": path2.resolve(__vite_injected_original_dirname, "./"),
                // 设置别名
                "@": path2.resolve(__vite_injected_original_dirname, "./src")
            },
            // https://cn.vitejs.dev/config/#resolve-extensions
            extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"]
        },
        // vite 相关配置
        server: {
            port: 80,
            host: true,
            open: true,
            proxy: {
                // https://cn.vitejs.dev/config/#server-proxy
                "/dev-api": {
                    target: "http://localhost:8080",
                    changeOrigin: true,
                    rewrite: (p) => p.replace(/^\/dev-api/, "")
                }
            }
        },
        //fix:error:stdin>:7356:1: warning: "@charset" must be the first rule in the file
        css: {
            postcss: {
                plugins: [
                    {
                        postcssPlugin: "internal:charset-removal",
                        AtRule: {
                            charset: (atRule) => {
                                if (atRule.name === "charset") {
                                    atRule.remove();
                                }
                            }
                        }
                    }
                ]
            }
        }
    };
});
export {
    vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcuanMiLCAidml0Z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